package NGUYENTIENDAT.OOP.EX;

public class Model {
	/*public Model(){
		
	}*/
	public boolean CheckUser(String UserName, String PassWord) {

		return true;
	}

	public boolean CheckUser(UserEntity objectUser) {
		// C1.
		/*
		 * if (objectUser.getUserName().equals("Cuongtl") &&
		 * objectUser.getPassWord().equals("tiendat")) { return true; }else
		 * return false;
		 */

		// C2.
		return objectUser.getUserName().equals("Cuongtl")
				&& objectUser.getPassWord().equals("tiendat") ? true : false;

	}

	public boolean CheckActive(UserEntity objectUser) {
		return true;
	}

	public boolean CheckSoDuTK(UserEntity objectUser) {
		return true;
	}

	public boolean CheckLock(UserEntity objectUser) {
		return true;
	}
}
